import json

from config import BEAS_ADER

"""
读取data文件目录的参数数据
"""
def read_json(filename):
    with open(f"{BEAS_ADER}" + "/data/" + f"{filename}", mode="r", encoding="utf8") as f:
        data = json.load(f)
        data_list = []
        for i in data:
            temp = i.values()
            data_list.append(tuple(temp))
        return data_list


if __name__ == '__main__':
    print("从文件中读取到的元组数据",read_json("emp_put.json"))
